-- GENERATED SPELL FOR [Darnassian Huntress] --


function spell0_16332(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16332', 567, 1)
end

function spell1_16332(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16332', 663, 1)
end

function Sorts_16332(pUnit, Event)
local choix_sorts_16332 = math.random(0, 1)
if choix_sorts_16332 == 0 then
pUnit:RegisterEvent('spell0_16332', 1, 1)
end
if choix_sorts_16332 == 1 then
pUnit:RegisterEvent('spell1_16332', 1, 1)
end
end

function mob16332_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16332', math.random(1500, 3000), 1)
end

function mob16332_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16332_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16332_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16332, 1, 'mob16332_Action')
RegisterUnitEvent(16332, 2, 'mob16332_Leave')
RegisterUnitEvent(16332, 3, 'mob16332_Kill')
RegisterUnitEvent(16332, 4, 'mob16332_Die')
